package com.gel.shortLink.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gel.shortLink.dao.entity.LinkDO;
import com.gel.shortLink.dto.req.ShortLinkCreateReqDTO;
import com.gel.shortLink.dto.req.ShortLinkPageReqDTO;
import com.gel.shortLink.dto.req.ShortLinkUpdateReqDTO;
import com.gel.shortLink.dto.resp.ShortLinkCreateRespDTO;
import com.gel.shortLink.dto.resp.ShortLinkGroupCountQueryRespDTO;
import com.gel.shortLink.dto.resp.ShortLinkPageRespDTO;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

/**
* @author MJB_Computer
* @description 针对表【t_link_0】的数据库操作Service
* @createDate 2025-07-08 19:54:46
*/
public interface LinkDOService extends IService<LinkDO> {

    ShortLinkCreateRespDTO createShortLink(ShortLinkCreateReqDTO requestParam);

    IPage<ShortLinkPageRespDTO> pageShortLink(ShortLinkPageReqDTO requestParam);

    List<ShortLinkGroupCountQueryRespDTO> listGroupShortLinkCount(List<String> requestParam);

    void updateShortLink(ShortLinkUpdateReqDTO requestParam);

    void restoreUrl(String shortUri, HttpServletRequest request, HttpServletResponse response);
}
